Skip to main content

switchEipPyg2Sub

Description

Switch eip payasyougo to subscription.

Request Method

POST

Request Path

/customer/eip/switch/pyg2sub/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
chargingMethodBODYstringNoNo sample value for this parameter.charging method. PayByBandwidth or PayByTraffic
periodBODYintegerNoNo sample value for this parameter.period
instanceIdBODYstringYesNo sample value for this parameter.instance id
costBODYintegerNoNo sample value for this parameter.amount
regionIdBODYstringYesNo sample value for this parameter.region id
orderIdBODYstringNoNo sample value for this parameter.order id
billingMethodBODYstringYesNo sample value for this parameter.billing method. Subscription or PayAsYouGo
zoneIdBODYstringNoNo sample value for this parameter.zone id
pricingCycleBODYstringNoNo sample value for this parameter.cycle. Month or Year

Return data

NameTypeSample valueDescription
resultobject`{"orderId":2.02207271417009997E+18}`result
resultCodestring0result code
resultMsgstringsuccessresult message

Example

Successful Response example

{
"result":
{
"orderId":2.02207271417009997E+18
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}